#include "dominion.h"
#include "dominion_helpers.h"
#include "rngs.h"
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
void test_isGameOver();
void test_isGameOver() {
	int i;	
	struct gameState *state = newGame();
	state->supplyCount[province] = 0;
	for (i = 0; i<25; i++)
	    {
		state->supplyCount[i] = i;
	    }
	state->supplyCount[3] = 0;
	state->supplyCount[5] = 0;
	state->supplyCount[6] = 0;

	if(isGameOver(state) == 1)
		printf("isGameOver(): PASS when province count is 0\n");
	else
		printf("isGameOver(): FAIL when province count is 0\n");
	
	state->supplyCount[province] = 4;
		
	if(isGameOver(state) == 1)
		printf("isGameOver(): PASS when province count was 3 and supplyCount 3,5,6 = 0\n");
	else
		printf("isGameOver(): FAIL when province count was 3 and supplyCount 3,5,6 = 0\n");
}

int main(int argc, char *argv[])
{
	test_isGameOver();
	return 0;
}
